package com.fzy.auth.entity;

import com.fzy.core.entity.EntityId;

/**
 * @hibernate.mapping default-lazy="false"
 * @hibernate.class table="fz_contact"
 * @hibernate.meta attribute="class-description" value="联系方式"
 * @hibernate.comment 联系方式
 */
public class Contact implements EntityId {
	Long id;
	Long userId;
	String email;
	/**
     * @hibernate.id generator-class="sequence" column="id" type="long" unsaved-value="null"
     * @hibernate.generator-param  name="sequence" value="s_fz_constact"
     * @hibernate.meta attribute="field-description" value="ID"
     * @hibernate.comment ID(s_fz_constact)
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	/**
     * @hibernate.property column="user_id" type="long" not-null="true"
     * @hibernate.meta attribute="field-description" value="用户"
     * @hibernate.comment 用户ID
     * @hibernate.custom query="true" ref="com.fzy.auth.entity.User"
     */
    public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
     * @hibernate.property column="email" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="邮箱"
     * @hibernate.comment 邮箱
     * @hibernate.custom query="true"
     */
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
}
